/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package metier;

import dao.QuestionFacadeLocal;
import entite.Question;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author david.tamisier
 */
@Stateless
public class GestionQuestion implements GestionQuestionLocal {

    @EJB
    private QuestionFacadeLocal questionFacade;

    /**
     * Enregistrement d'une nouvelle question.
     * @param question à enregistrer
     */
    @Override
    public void enregistrerNouveauQuestion(Question question) {        
        questionFacade.create(question);
    }

    /**
     * Modification d'une question.
     * @param question à modifier
     */
    @Override
    public void modifierQuestion(Question question) {        
        questionFacade.edit(question);
    }
 
}
